<?php
	$loading_img = "http://www.12301.cc/images/loading.gif";
?>
<link rel="stylesheet" href="css/aliceui.min.css"/>
<link rel="stylesheet" href="css/resetui.css"/>
<link rel="stylesheet" href="css/prod_store.css"/>
<link rel="stylesheet" href="http://www.12301.cc/css/common/www.12301.cc.global.css"/>
<link rel="stylesheet" href="http://www.12301.cc/css/prod_edits_child.css"/>
<link rel="stylesheet" href="http://www.12301.cc/css/common/iconfont.css"/>
<script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=DE946147d82abf8082f7e80868ea8afb"></script>
<!--[if lt IE 7]><div id="wrapper" class="lt-ie10 lt-ie9 lt-ie8 lt-ie7 ie6 wrapper"> <![endif]-->
<!--[if IE 7]><div id="wrapper" class="lt-ie10 lt-ie9 lt-ie8 ie7 wrapper"> <![endif]-->
<!--[if IE 8]><div id="wrapper" class="lt-ie10 lt-ie9 ie8 wrapper"> <![endif]-->
<!--[if IE 9]><div id="wrapper" class="lt-ie10 ie9 wrapper"><![endif]-->
<!--[if gt IE 9]><!--><div id="" class="wrapper"> <!--<![endif]-->
<h3 class="mc_title"><span class="mctit_1"><span class="mctit_2">子景点发布</span></span></h3>
	<div class="ui-box-container">
	<div class="ui-box-content">
	<form name="mainForm" id="mainForm" class="ui-form" method="post" action="http://121.41.120.34/pft/tour/upload_n.php" enctype="multipart/form-data" target="hideFrame">
	<input type="hidden" name="lastid" value="<?=$scenic['id']?>"/>
	<input type="hidden" name="parent_id" value="<?=$parent_id?>"/>
	<input type="hidden" name="applydid" value="<?=$apply_did?>"/>
	<input type="hidden" name="action" value="scenic"/>
	<input type="hidden" name="nf" value="<?=$_REQUEST['nf']?>"/>
	<input type="hidden" name="upload_mth" id="upload_mth" value="1"/>
	<input type="hidden" name="ac" value="<?=$_SESSION['saccount']?>"/>
	<iframe src="about:blank" style="display:none;" id="hideFrame" name="hideFrame" frameborder="0"></iframe>
	<fieldset>
		<div class="ui-form-item">
			<label class="ui-label"><span class="ui-form-required">*</span>导览点名称</label>
			<input title="请填写<?=$FieldList[$ptype]['title']?>" class="ui-input check w408" data-required="2" id="mainTitle" name="mainTitle" type="text" autofocus value="<?=($_REQUEST['title']) ? $_REQUEST['title']:$scenic['scenic_name']?>" />
			<span class="ui-form-other ui-form-explain">请填写标题</span>
		</div>

		<!--显示经纬度-->
		<div id="container" style="position: absolute;margin-top:30px; width: 3px; height: 3px; display:none;top:50; border: 1px solid gray;overflow:hidden;"></div>

		<div class="ui-form-item">
			<label class="ui-label"><span class="ui-form-required">*</span>所在地区</label>
			<input type="hidden" value="<?=$scenic['province']?>|<?=$scenic['city']?>" name="area"/>
			<input type="hidden"  id="ccid" />
			<span id="area"></span>
		</div>
		<div class="land ui-form-item">
			<!--<input type="hidden" name="child_place_tude" id="lnglatHiddenInp"/>-->
			<input type="hidden"   id="ccid2" value="" />
			<label class="ui-label"><span class="ui-form-required">*</span>详细地址</label>
			<input class="ui-input w408" data-required="1" id="text_b"  name="detail_address" type="text" value="<?=$scenic['detail_addr']?>">
			<input type="text" id="result_ab" name="child_place_tude" style="border-style:none; width:200px;" value="<? if($scenic['lng']) echo $scenic['lng'].','.$scenic['lat'];?>" />
		</div>
		<div class="ui-form-item">
			<label class="ui-label">
				<span class="ui-form-required">*</span>导游词
			</label>
			<textarea id="detailInfo" name="detailInfo" data-required="2" title="导游词" placeholder="请输入导游词，您也可以直接上传本地语音作为导游词"><?=$scenic['tour_guide']?></textarea>
			<?php
				$timestamp = $_SERVER['REQUEST_TIME'];$signature = md5('5535bd08&'  .$timestamp . '&60000&c408459d89e08d67');
			?>
			<input id="sinature" name="sinature" value="<?=$signature?>" type="hidden"/>
			<input id="timestamp" name="timestamp" value="<?=$timestamp?>" type="hidden"/>
			<div id="dyBtns" class="dyBtns">
				<a id="transToAudioBtn" class="btn transToAudioBtn" href="###"><i class="iconfont">&#xe657;</i>转成语音并上传</a>
				<label id="uploadAudioBtn" class="btn uploadAudioBtn" for="daoyouAudio"><i class="iconfont">&#xe659;</i>直接上传语音</label><span class="tip">小于1M｜格式：mp3，aac，wma</span>
				<a id="tryListen" class="btn tryListen disabled" href="###" data-src="<?=$voice?>"><i class="iconfont">&#xe600;</i>试听</a>
				<!--<form id="daoyouAudioForm" action="http://121.41.120.34/pft/tour/upload_n.php" method="post" enctype="multipart/form-data" target="hideFrame">-->
				<input type="file" name="file" onchange="onInputFileChange.audio(this)" id="daoyouAudio"/>
				<input type="hidden" name="upfile_music_v" class="thumb_img" value="<?=voice?>"/>
				<!--</form>-->
			</div>
		</div>

		<!--thumb image-->

		<div class="ui-form-item" style="position: relative;">
			<label class="ui-label"><span class="ui-form-required">*</span>导览点图片</label>
			<a class="lnk_prv" target="_blank" title="点击查看原图" href="<?=$thumb?>">
				<input type="hidden" id="thumb_img" name="thumb_img" class="thumb_img" value="<?=$thumb?>"/>
				<img style="width:240px;height:160px;" id="upload_img_res_img" src="<?=$thumb?>" class="preview" />
			</a>
			<div class="uploadImg">
				<p class="title">重新上传缩略图：</p>
				<input type="file" name="upfile" id="imgup"/>
				<p class="ui-form-explain">点击上传小于1M的JPG或GIF格式的图片,<br/>建议图片尺寸：宽350像素，高230像素</p>
				<input type="button" id="BtnUpload" value="上传" class="ui-button ui-button-swhite"/>
				<span id="uploadTipImg" class="uploadTip img"><img src="<?=$loading_img?>" alt=""/><span class="t">正在上传...</span></span>
				<p class="waitingUpload" class="ui-form-other"></p>
			</div>
			<p class="ui-form-explain">默认将使用商户提供的缩略图作为页面展示的图片</p>
		</div>
		<div class="ui-form-item">
			<label class="ui-label">
				<span class="ui-form-required">*</span>视频
			</label>
			<a class="lnk_prv" style="display:none" target="_blank" title="视频介绍" href="<?=$video?>">
				<input type="hidden" id="upfile_video_v" name="upfile_video_v" class="thumb_img" value="<?=$video?>"/>
				<img style="width:240px;height:160px;" src="<?=$video?>" class="preview" />
			</a>
			 <input type="file" name="upfile_video" id="imgup2"/>
			<input type="button" id="BtnUpload2" value="上传" class="ui-button ui-button-swhite"/>
			<span id="uploadTipVideo" class="uploadTip video"><img src="<?=$loading_img?>" alt=""/><span class="t">正在上传...</span></span>
            <span id="hasLoadedFlag_video" class="hasLoadedFlag"><span class="t"><i class="iconfont">&#xe64c;</i>已上传</span><a class="abtn" target="_blank" href="<?=$video?>">点击查看</a></span>
            <p class="ui-form-explain">点击上传小于5M的.mov,.mp4,.avi,.mkv格式的视频</p>
			<p class="waitingUpload" class="ui-form-other"></p>
		</div>

		<div class="ui-form-item">
			<label class="ui-label"><span class="ui-form-required">*</span>360全景</label>
			<a class="lnk_prv" style="display:none" href="<?=$panorama?>">
				<input id="upfile_allvideo" type="hidden" name="upfile_allvideo" class="thumb_img" value="<?=$panorama?>"/>
				<img style="width:240px;height:160px;" src="<?=$panorama?>" class="preview" />
			</a>
			<input type="file" name="upfile_allvideo" id="imgup3"/>
			<input type="button" id="BtnUpload3" value="上传" class="ui-button ui-button-swhite"/>
			<span id="uploadTipLand360" class="uploadTip land360"><img src="<?=$loading_img?>" alt=""/><span class="t">正在上传...</span></span>
            <span id="hasLoadedFlag_land360" class="hasLoadedFlag"><span class="t"><i class="iconfont">&#xe64c;</i>已上传</span><a class="abtn" target="_blank" href="<?=$panorama?>">点击查看</a></span>
			<p class="ui-form-explain">点击上传小于3M的360全景文件</p>
			<p class="waitingUpload" class="ui-form-other"></p>
		</div>

		<!--thumb image-->
		<div class="ui-form-item"><?=$saveBtn?><a style="margin-left:10px;" href="<?=$_SERVER['HTTP_REFERER']?>">返回列表</a></div>
		<!--<div class="ui-form-item"><a style="color:#fff" href="javascript:void(0)" class="ui-button ui-button-lblue" id="saveProduct" data-wrap="ticketBox" type="button">保存，返回列表</a><a style="margin-left:10px;" href="<?=$_SERVER['HTTP_REFERER']?>">返回列表</a></div>-->
	</fieldset>
</form>
</div>
</div>
</div>
</div><!--div.wrapper-->
<ul id="mainAreas"></ul>

<script src="http://www.12301.cc/js/getaress.js" type="text/javascript"></script>
<!--<script src="http://www.12301.cc/js/point_c.js" type="text/javascript"></script>-->
<!-- 核心文件 -->
<script type="text/javascript" src="ue_126/ueditor.all.min.js"></script>
<script type="text/javascript" src="js/prod_pub.js"></script>
<script type="text/javascript" src="js/prod_editk_v3_dtdtdt.js?body=1"></script>
<script src="http://www.12301.cc/module/tts/js/socket.io/socket.io.js"></script>
<script src="http://www.12301.cc/module/tts/js/connection/connection.js"></script>
<script src="http://www.12301.cc/module/tts/js/common/fingerprint.js"></script>
<script src="http://www.12301.cc/module/tts/js/util/brow.js"></script>
<script src="http://www.12301.cc/module/tts/js/log/log.js"></script>
<script src="http://www.12301.cc/module/tts/js/session/tts.js"></script>
<script src="http://www.12301.cc/module/tts/js/session/session.js"></script>
<script src="http://www.12301.cc/module/tts/js/session/sessioninfo.js"></script>
<script src="http://blog.faultylabs.com/files/md5.js"></script>
<script type="text/javascript" src="http://www.12301.cc/js/global/www.12301.cc.global.js"></script>
<script type="text/javascript" src="http://www.12301.cc/js/getLngLatByAddress.js"></script>
<script type="text/javascript" src="http://www.12301.cc/js/prod_edits_child.js"></script>
</div><!--div.wrapper-->
<?include('common/footer.html')?>